<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <title></title>
    <script type="text/javascript" src="/js/lib/require.js"></script>
    <script type="text/javascript" src="/js/require.config.js"></script>
    <script type="text/javascript">
    require(["core"], function() {
        require(["./js/pages/searchset"], function(argument) {
            window.removeLoader();
        });
    });
    </script>
</head>

<body>
    <div style="display:none;" id="jSouperApp" class="_pc">
        {{#include "pages/default/top.html"}}
        <!-- nav-bar -->
        {{#include "./pages/default/nav-bar.html"}}

        <xmp>
            <div class="mainindex">
                <div class="goods-type">
                    <div id="left">
                        <!-- 每页显示12个商品 -->
                        <span>搜索结果：{{$Cache.search_key}}</span>
                        <div style="margin-top:15px" class="goods">
                            {{#if !goods.length}}
                            <p>找不到相关“<b>{{$Cache.search_key}}</b>”的商品</p>
                            {{/if}} {{#each goods}}
                            <main-goods-test href="/goods-details.html?id={{_id}}" src="{{preview_img_url}}?imageView/1/w/200/h/200" name="{{goods_name}}" intro="{{intro}}" price="{{price}}" count="{{num}}" sale="{{sale_num}}"></main-goods-test>
                            {{/each}}
                        </div>
                        <!-- 翻页 -->
                        <div id="page_turn">
                            <div id="pre_page">
                                {{#if $Cache.current_page_num!=0}}
                                <a title="前一页" href="/all-goods-beta.html#?id={{$Top.$Cahce.goods_list_type}}&page={{$Cache.current_page_num-1}}&num={{$Cache.goods_pre_num}}"><i name="pre_page" class="icon-arrow-left"></i></a>
                                {{/if}}
                            </div>

                            <div id="page_num">
                                {{#each $Cache.page_num}} {{#if $Index==$Top.$Cache.current_page_num}} [当前页：{{~~$Index+1}}] {{#else}}
                                <a href="/all-goods-beta.html#?id={{$Top.$Cahce.goods_list_type}}&page={{$Index}}&num={{$Top.$Cache.goods_pre_num}}">
                                    <span>{{~~$Index+1}}</span>
                                </a>
                                {{/if}} {{/each}}
                            </div>

                            <div id="next_page">
                                {{#if $Cache.page_num.length>$Cache.current_page_num}}
                                <a title="后一页" href="/all-goods-beta.html#?id={{$Top.$Cahce.goods_list_type}}&page={{$Cache.current_page_num+1}}&num={{$Cache.goods_pre_num}}"><i name="next_page" class="icon-arrow-right"></i>
                                </a>
                                {{/if}}
                            </div>
                        </div>

                    </div>

                </div>

            </div>
        </xmp>

        {{#include './pages/default/bottom.html'}}
    </div>
</body>

</html>
